GBML manual / 3D

view3d_y

The camera’s y in the room, in pixels.

Game Boy: not available

Game Boy Color: not available

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

view3d_y() -> real

Returns

real

Description

The camera's y in the room, in pixels counted from the room's top-left corner (y grows downward, a tile is 8 pixels). It is where view3d_move or view3d_camera last left it.

Example

var tile_row = view3d_y() div 8;

The row of tiles the camera stands in.

On the GBA

Where view3d_move left it.

See also: 3D viewview3d_xview3d_angleview3d_camera